NAME = register
TAG= 0.0.1
INSTANCE = register
DB_INSTANCE = userdb
REDIS_INSTANCE = myredis
RABBITMQ_INSTANCE = rabbitmq

default: docker

docker:
	docker build -t $(NAME):$(TAG) .

run:
	docker run --name $(INSTANCE) -p 8082:8082 --link $(DB_INSTANCE):db --link $(REDIS_INSTANCE):redisdb --link $(RABBITMQ_INSTANCE) -d $(NAME):$(TAG)